package com.cldz.dao;

import com.cldz.common.dto.req.DevDataDto;
import com.cldz.entity.DeviceData;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @ Author     ：lixiao.
 * @ Date       ：Created in 14:51 2018/12/12
 * @ Description：
 * @ Modified By：
 */
@Mapper
public interface DevDataMapper {

    List<DeviceData> getDeviceRealData(DevDataDto devDataDto);

    Integer getDeviceRealDataAmount(DevDataDto devDataDto);

    List<DeviceData> getHistoryData(List<Map<String, Object>> list);

    Integer getHistoryDataAmount(List<Map<String, Object>> maps);

    DeviceData getDataByChannelID(DevDataDto devDataDto);

    Map<String, Object> isTableExist(String tableName);
}
